home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2008 January / Cybermycha 1_2008.iso / DataPh~1.cab / _C08071AF52DC4EDF8944352A6E9269E9 < prev    next >
Encoding:
Text File  |  2004-08-04  |  2.0 KB  |  59 lines

  1. ///////////////////////////////////////////////////////////////////////////////////////////////////
  2. // Parametry swiata ODE
  3. ///////////////////////////////////////////////////////////////////////////////////////////////////
  4.  
  5. !include("ODEPhysics.def")
  6.  
  7. //-------------------------------------------------------------------------------
  8.  
  9. WorldParams()
  10. {
  11.     EnableODE(1)
  12.     EnableRenderOnStart(0)              //@@ do testow 1
  13.     EnableAutoUpdate(1)
  14.  
  15.     SetGravity(0, -1000, 0)
  16.     
  17.     SetERP(0.45)
  18.     SetCFM(0.0000001)
  19.     
  20.     EnableFixedUpdateTime(1)
  21.     SetFixedUpdateTime(0.02)            // 0.02 = 1/50    0.015625 = 1/64      0.03125 = 1/32      0.0625 = 1/16
  22.     SetMinUpdateTime(0.002)             // przy wlaczonym FixedTime nieuzywane
  23.     SetMaxUpdateTime(0.015)             // przy wlaczonym FixedTime nieuzywane
  24.     
  25.     EnableStepFast(1)                   // jesli 0 - tryb StepFast wylaczony - nastepne 4 linijki nie sa brane pod uwage
  26.     SetMinStepFastIterations(4)
  27.     SetMaxStepFastIterations(20)
  28.     SetJointCountThreshold(1)
  29.     SetJointCountDivisor(1)
  30.     
  31.     EnableSkipContactConnected(1)
  32.     
  33.     // wind params
  34.     WindDir(1, 0, 0)
  35.     WindPhaseOppositionDistance(2000)
  36.     DirWindParams(110, 130, 15, 20)
  37.     PerpDirWindParams(40, 40, 100, 141)
  38.     WindWaveParams(60, 60, 1.5, 1.7)
  39. //    DirWindParams(0, 0, 15, 20)
  40. //    PerpDirWindParams(0, 0, 100, 141)
  41. //    WindWaveParams(0, 0, 1.5, 1.7)
  42. }
  43. //-------------------------------------------------------------------------------------------------
  44.  
  45. CacheParams()                           // extenty obiektow ODE beda powiekszane o tyle cm w kazda strone i z takich powiekszonych beda brane trojkaty (min, max, freq)
  46. {
  47. //    TerrainCacheParams(0, 0, 8)
  48. //    StaticObjectsCacheParams(0, 0, 8)
  49. //    TreesCacheParams(0, 0, 8)
  50.  
  51.     TerrainCacheParams(0.5, 70, 4)
  52.     StaticObjectsCacheParams(0.5, 70, 4)
  53.     TreesCacheParams(0.5, 70, 4)
  54. }
  55.  
  56. //-------------------------------------------------------------------------------------------------
  57.  
  58.  
  59.